# 抽象的父类设计标准 AC 抽象统一方法: cool_wind, hot_wind, swing_l_r
# 具体的子类实现标准 XiaoMi_AC GREE_AC Midea_AC

# 1 实现设计标准
class AC(object):
    def cool_wind(self):
        pass

    def hot_wind(self):
        pass

    def swing_l_r(self):
        pass


# 2 构建具体的子类
class XiaoMi_AC(AC):
    def cool_wind(self):
        print('XiaoMi_AC  cool_wind...')

    def hot_wind(self):
        print('XiaoMi_AC  hot_wind...')

    def swing_l_r(self):
        print('XiaoMi_AC  swing_l_r...')


class GREE_AC(AC):
    def cool_wind(self):
        print('GREE_AC  cool_wind...')

    def hot_wind(self):
        print('GREE_AC  hot_wind...')

    def swing_l_r(self):
        print('GREE_AC  swing_l_r...')


# 3 测试平台
def maketestAC(myac:AC):
    myac.cool_wind()
    myac.hot_wind()
    myac.swing_l_r()
    pass


# 4 调用
if __name__ == '__main__':
    mygree_ac = GREE_AC()
    myxiaomi_ac = XiaoMi_AC()

    maketestAC(mygree_ac)
    maketestAC(myxiaomi_ac)



